<?php

use Drupal\shusy_cash\Entity\ShusyCash;

function shusy_cash_shusy_cash_add_page() {
  $e = new ShusyCash();
  module_load_include('inc', 'shusy_cash', 'shusy_cash.forms');
  return drupal_get_form('shusy_cash_shusy_cash_entity_form', $e, 'add');
}

function shusy_cash_shusy_cash_view_page(ShusyCash $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_cash_shusy_cash_edit_page(ShusyCash $e) {
  module_load_include('inc', 'shusy_cash', 'shusy_cash.forms');
  return drupal_get_form('shusy_cash_shusy_cash_entity_form', $e, 'edit');
}

function shusy_cash_shusy_cash_delete_page(ShusyCash $e) {
  module_load_include('inc', 'shusy_cash', 'shusy_cash.forms');
  return drupal_get_form('shusy_cash_shusy_cash_delete_form', $e);
}

